mohan@mohan-Lenovo-G50-70 ~/dev/monitor-mf $ keytool -genkey -v -keystore monitor-mf-release-key.keystore -alias monitor-mf-key-alias -keyalg RSA -keysize 2048 -validity 10000 Enter keystore password: secret Re-enter new password: secret What is your first and last name? [Unknown]: What is the name of your organizational unit? [Unknown]: What is the name of your organization? [Unknown]: What is the name of your City or Locality? [Unknown]: What is the name of your State or Province? [Unknown]: What is the two-letter country code for this unit? [Unknown]: Is CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown correct? [no]: yes Generating 2,048 bit RSA key pair and self-signed certificate (SHA256withRSA) with a validity of 10,000 days for: CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown Enter key password for (RETURN if same as keystore password): [Storing monitor-mf-release-key.keystore] Warning: The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore monitor-mf-release-key.keystore -destkeystore monitor-mf-release-key.keystore -deststoretype pkcs12". mohan@mohan-Lenovo-G50-70 ~/dev/monitor-mf $ keytool -importkeystore -srckeystore monitor-mf-release-key.keystore -destkeystore monitor-mf-release-key.keystore -deststoretype pkcs12 Enter source keystore password: Entry for alias monitor-mf-key-alias successfully imported. Import command completed: 1 entries successfully imported, 0 entries failed or cancelled Warning: Migrated "monitor-mf-release-key.keystore" to Non JKS/JCEKS. The JKS keystore is backed up as "monitor-mf-release-key.keystore.old". mohan@mohan-Lenovo-G50-70 ~/dev/monitor-mf $